<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path;
%>

<html>
<head>
	<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>/static/css/demo.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>/static/css/ribbon.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>/static/css/ribbon-icon.css">
	<script type="text/javascript" src="<%=basePath %>/static/json/jquery.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>/static/json/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath %>/static/json/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>/static/json/jquery.ribbon.js"></script>
</head>
<body>	
	<div id = "input" hidden="YES">
		<input class="easyui-searchbox" data-options="prompt:'11',searcher:doSearch" style="width:100%"></input>
	</div>
	<div style = "width:103%;height:100%;margin-left: -2%;margin-top: -2%">
	<table id="dg" class="easyui-datagrid" title="" style="width:100%;height:108%;"
			data-options="singleSelect:true,
							collapsible:true,
							url:'<%=basePath %>/static/json/datagriddata3.json',
							method:'get',
							fitColumns:true
							">
		<thead>
			<tr>
				<th data-options="field:'productid',align:'center',resizable:false,formatter:formatter" width="100">编码</th>
				<th data-options="field:'productname',align:'center',resizable:false,formatter:formatter" width="100">任务类型</th>
				<th data-options="field:'unitcost',align:'center',resizable:false,formatter:formatter" width="100">时间类型</th>
				<th data-options="field:'status',align:'center',resizable:false,formatter:formatter" width="100">发生时间</th>
				<th data-options="field:'listprice',align:'center',resizable:false,formatter:formatter" width="100">任务执行对象</th>
				
			</tr>
			
			
		</thead>

		
	</table>
	</div>
	
</body>
	<script type="text/javascript">
		function formatter(value,row){
			
		
			if(row.row){

				return '<input class="easyui-searchbox" data-options="searcher:doSearch" style="width:100%"></input>';
			}
			return value;
		}
		function doSearch(value){
			alert('You input: ' + value);
		}
	</script>

</html>